Making Casette Tape Labels using LATEX

;SPMnbsp;Sunil Podar (podar@sbcs) ;SPMnbsp;
;SPMnbsp;S.U.N.Y. at Stony Brook. ;SPMnbsp;




This document describes a way to maintain a simple ``album database'' and susequently print formatted casette tape labels. The commands to accomplish this have been implemented as a documentstyle option <#20#>tape<#20#> and should be used with the <#21#>article<#21#> documentstyle, i.e., it should be invoked with the command:

1

A casette has two sides and each side is assumed to hold one <#22#>album<#22#>. Each side of a casette tape label has three major fields of information, depicted in Figure 1.:

<#291#>side<#291#>
the textual information that goes on the front-flap. This is where most of the information goes.
<#292#>title<#292#>
the title given to the <#24#>side<#24#> that goes on the side face of the casette cover.
<#293#>addendum<#293#>
the textual information that goes on the back-flap of the casette tape cover.

<#26#>1<#26#><#27#>side--1<#27#><#28#>title--1<#28#><#29#>addendum--1<#29#> <#30#>2<#30#><#31#>side--2<#31#><#32#>title--2<#32#><#33#>addendum--2<#33#>

<#294#>Figure<#294#>: <#295#>The Layout of a Casette Tape Label and the Terminology Used<#295#>
#figure34#

Each side of the tape in the database is defined using the following command:

<#43#>2album-id3side4title5addendum6<#43#>

7 command defines an album. More precisely, it defines one side of a casette tape. It takes four arguements: first one is a unique label assigned to every album, the other three being <#44#>side<#44#>, <#45#>title<#45#> and <#46#>addendum<#46#>.

A tape label holds information for two sides. Following command produces the tape label:

<#47#>8tape-id9album1-id10album2-id11optional tape title12<#47#>

The album entry corresponding to <#48#>album1-id<#48#> goes on the left side of the tape label and those corresponding to <#49#>album2-id<#49#> on the right side. By default, individual titles are picked up from the album definition and formatted to appear under their own sides. If it is desired to have a single title as the case may be if both sides of a tape are by the same composer or group, then a title may be explicitly specified as the last arguement in which case individual titles of the two albums, as specified in their respective 13 definitions, are ignored.

A tape label also has two minor fields of information, that go on the side face of the tape label, on either side of the title. They are:

<#297#>globaltapeid<#297#>
This goes on the left side of the title, almost flush with the left edge. This may hold information such as the owner's name. By default, it is empty and may be changed using a 14.

<#298#>tapeid<#298#>
This is an identification for individual tapes and goes to the right of the title almost flush with the right edge.

The width of the box in which the two fields described above are printed, is controlled by a variable 15 and may be changed using a 16 command. Also, by default, a vertical line is drawn separating the two boxes from the title region. It may be changed by a 17 on the parameter 18 --- one may prefer a • (19) as the demarcator.

The <#52#>side<#52#> and the <#53#>addendum<#53#> fields are set in a 20 environment, thus any of the regular paragraph formatting commands of LATEX may be used; various formatting environments, such as <#54#>tabbing<#54#>, <#55#>tabular<#55#>, <#56#>itemize<#56#>, <#57#>enumerate<#57#>, etc., can also be used. The other fields, i.e., <#58#>title<#58#>, <#59#>globaltapeid<#59#> and <#60#>tapeid<#60#> are set in a 21 thus only 22 command may be used with no blank lines in the fields -- a parbox permits only one simple paragraph. Just a reminder: to get indentation on a line following a 23 command, use 24 instead of 25; according to the manual, any 26 after a 27 is ignored.

On the outside of the left hand edge of the tape label, three vertical lines are shown. In addition to enforcing a correct height for each of the three regions, they also serve as an indicator. Their height is invariant and in the case when more text has been typed in a region than will fit on the label, they indicate precisely by how much has the height been overshot. They should, of course, be left out when the label is cut.

No choice of fonts or fontsizes is enforced and one is completely free to choose these, although it is suggested that a small-sized font (such as those obtained by 28, 29 or 30 declarations) be used since the width of the paragraphs is rather small. Also, if more information need to be put than will fit, the inter-line spacing may be reduced using a 31 on the parameter 32.

Two tape labels can be fit on a page, and a 33 declaration ought to be placed after every two 34 commands.

It is assumed that each 35 describes one <#61#>side<#61#> of the tape label, which is also usually the case. If one side of a tape contains more than one album then one will have to declare it as a single 36 description. On the other hand, if a single album, or piece of music spans both sides of a casette tape, its description will have to be broken into two 37 declarations.

The label can be cut out along the outer boundary -- the border lines are meant to be part of the label so the cut should be just along the outer edge of the lines.